<template>
  <div>
    <span v-for="item in arr" :key="item">
      <input type="checkbox" v-model="arrData" :value="item" />{{ item }}
    </span>
    <ul>
      <li v-for="item in arrData" :key="item">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科技", "魔幻", "仙侠", "都市", "喜剧"],
      arrData: [],
    };
  },
};
</script>

<style scoped>
</style>